From: Chong Yidong Date: Sat, 12 May 2007 23:28:16 +0000 (+0000) Subject: (XTread_socket): Yet another uncaught X error crash (YAUXEC). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~18889 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=879627a60cbed9c2d811230615f0eb385d6c1c45;p=emacs.git (XTread_socket): Yet another uncaught X error crash (YAUXEC). --- diff --git a/src/xterm.c b/src/xterm.c index 4f77e22ac59..9adb2b2c259 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7065,6 +7065,7 @@ XTread_socket (sd, expected, hold_quit) #endif #ifndef USE_GTK + x_catch_errors (dpyinfo->display); while (XPending (dpyinfo->display)) { int finish; @@ -7083,6 +7084,7 @@ XTread_socket (sd, expected, hold_quit) if (finish == X_EVENT_GOTO_OUT) goto out; } + x_uncatch_errors (); #endif /* not USE_GTK */ }